﻿using System;
using System.Data;
using System.Collections.Generic;
using OgilvyOne.Model;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
namespace OgilvyOne.BLL
{
    public class ModelManageBLL
    {
        public DataSet GetModel(string strWhere)
        {

            return ModelManageFactory.create().GetModel(strWhere);
        }

        public int AddModel(ModelManageModel addModel)
        {
            return ModelManageFactory.create().AddModel(addModel);
        }
        public bool deleteModel(int tid)
        {
            return ModelManageFactory.create().deleteModel(tid);
        }
        public ModelManageModel getModel(int tid)
        {
            return ModelManageFactory.create().getModel(tid);
        }
        public int updateModel(ModelManageModel mmm)
        {
            return ModelManageFactory.create().updateModel(mmm);
        }
    }
}
